###
### Makefile for GNU Interactive Tools
###

###
### Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
###
### This program is  free software; you can  redistribute it and/or modify
### it under the terms  of the GNU General Public  License as published by
### the  Free Software Foundation; either version  2,  or (at your option)
### any later version.
### 
### This program is distributed  in the hope that  it will be  useful, but
### WITHOUT    ANY  WARRANTY;  without   even   the  implied  warranty  of
### MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR   PURPOSE.  See the GNU
### General Public License for more details.
### 
### You should  have received a  copy of  the GNU  General Public  License
### along with   this  program; if   not,  write  to   the Free   Software
### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
###


PRODUCT		= "@PRODUCT@"
VERSION		= "@VERSION@"


srcdir		= @srcdir@
VPATH		= @srcdir@

prefix		= @prefix@
mandir		= $(prefix)/man/man1

SHELL		= /bin/sh
INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
HOST		= @HOST@


GIT_MANUALS	= git.1 gitaction.1 gitmount.1\
		  gitcmp.1 gitkeys.1 gitredir.1 gitrgrep.1


man:

installdirs:
	@$(srcdir)/../mkinstalldirs $(mandir)

install-strip: install

install: all install-only

install-only:
	for i in $(GIT_MANUALS);\
	do\
	    $(INSTALL_DATA) $(srcdir)/$$i $(mandir)/$$i;\
	done
	\
	for i in gitps.1 gitview.1;\
	do\
	    rm -f $(mandir)/$$i;\
	    ln $(mandir)/git.1 $(mandir)/$$i;\
	done

uninstall:
	-cd $(mandir) && rm -f $(GIT_MANUALS) gitps.1 gitview.1

clean:
	-rm -f *~ core* tutu* gogu*

mostlyclean: clean

distclean: clean
	-rm -f Makefile config.status config.log config.cache

realclean: distclean

# Tell version [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
